init(50,"mylegend",600,320,main);

var urlloader;
function main(){
	var sc = "Load.script(script/Main.lf);";
	var sp = new LSprite();
	sp.stage = {stageWidth:800,stageHeight:480};
	addChild(sp);
	var spcript = new LScript(sp,sc);
	/*
	//LGlobal.traceDisable = false;
	LEGEND_FILE_PHP = './file.php';
	var sc = "Load.script(script/Main.lf);";
	var sp = new LSprite();
	trace("t1","t2");
	sp.stage = {stageWidth:800,stageHeight:480};
	addChild(sp);
	var spcript = new LScript(sp,sc);*/
	/*LAjax.get("./script/Main.txt",{},function(data){
		alert(data);
	});
	return;
	LGlobal.setDebug(true);
	var urlloader = new LURLLoader();

	urlloader.addEventListener(LEvent.COMPLETE,readFileOk);

	urlloader.load("./script/Main.txt","text");*/
	
}

function readFileOk(){

	//alert(urlloader.data);
	/*
	var sc = urlloader.data;
	var sp = new LSprite();
	sp.stage = {stageWidth:800,stageHeight:480};
	addChild(sp);
	var spcript = new LScript(sp,sc);*/
}